﻿using System;
using UnityEngine;

public class EventSystem : Service
{
    public Action<int> AfterSceneLoad;
    /// <summary>
    /// 即将通过当前场景
    /// </summary>
    public Action<int> BeforeLoadScene;
    public Action<int> EnergyChange;
    public Action PlayerDie;
    /// <summary>
    /// 接触了记录点
    /// </summary>
    public Action<Checkpoint> TouchCheckPoint;
    /// <summary>
    /// 玩家与平台发生碰撞（接触面法线方向,与哪个物体发生碰撞,Player脚本）
    /// </summary>
    public Action<Vector2,GameObject,Character> CollidePlatform;
    public Action TouchGround;
    /// <summary>
    /// 相机移动，true表示开始移动，false表示结束移动
    /// </summary>
    public Action<bool> CameraMove;
    /// <summary>
    /// 玩家的颜色改变
    /// </summary>
    public Action<EColor> ColorChange;
}

